﻿@model IEnumerable<FMIS.Models.Club>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ClubName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Stadium.StadiumName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachesId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AlternativeName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Abbreviation)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Webpage)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Association)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateOfEstablishment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateOfEnrollment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateOfResignation)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OpeningHours)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Comment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Country)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.City)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.County)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Postcode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PublicComment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MainNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Cell)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Fax)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ShirtHome)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HomeShirt)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HomeShorts)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.HomeGoalieshirt)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AwayShirt)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AwayShorts)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AwayGoalieshirt)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ClubName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Stadium.StadiumName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AlternativeName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Abbreviation)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Webpage)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Association)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfEstablishment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfEnrollment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfResignation)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OpeningHours)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Country)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.County)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Postcode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PublicComment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MainNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Cell)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ShirtHome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HomeShirt)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HomeShorts)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HomeGoalieshirt)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AwayShirt)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AwayShorts)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AwayGoalieshirt)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ClubId }) |
            @Html.ActionLink("Details", "Details", new { id=item.ClubId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ClubId })
        </td>
    </tr>
}

</table>
